/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
// 员工的路由规则
export default {
  path: '/nested',
  component: Layout,
  redirect: '/setting/pointsManagement',
  meta: { title: '我是18', icon: 'el-icon-s-help', role: [18] },
  children: [
    {
      path: 'pointsManagement/1',
      component: () => import('@/views/table/pointsManagement'),
      name: 'pointsManagement-1',
      meta: {
        title: '我是1801',
        icon: 'el-icon-menu',
        role: [1801]
      },
      children: [
        {
          path: 'pointsManagement/2',
          component: () => import('@/views/table/pointsManagement'),
          name: 'pointsManagement-2',
          meta: {
            title: '我是1802',
            icon: 'el-icon-menu',
            role: [180101]
          }
        },
        {
          path: 'points/3',
          name: 'points-3',
          component: () => import('@/views/table/pointsManagement'),
          meta: { title: '我是1803', icon: 'el-icon-menu', role: [180102] }
        }
      ]
    },
    {
      path: 'points/4',
      name: 'points-4',
      component: () => import('@/views/table/pointsManagement'),
      meta: { title: '我是1804', icon: 'el-icon-menu', role: [180104] }
    }
  ]
}
